<?php
class Db{
    public $conn;

	public function getConnect() {
		try {
			//$this->conn = mysql_connect("localhost","root", "123");
            $this->conn = mysql_connect("localhost","root", "");
            mysql_select_db("virtual-store", $this->conn);
		} catch (Exception $e) {
		}
	}

	public function disconnect() {
		try {
			mysql_close($this->conn);
		} catch (Exception $e) {
		}

	}
}